import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MesCreateComponent} from './mes-create.component';

const routes: Routes = [
    {path: '', component: MesCreateComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mes-create/add-mes-create.module#AddMesCreateModule'},
            {path: 'list', loadChildren: './list-mes-create/list-mes-create.module#ListMesCreateModule'},
            {path: 'modify', loadChildren: './modify-mes-create/modify-mes-create.module#ModifyMesCreateModule'},
            {path: 'report', loadChildren: './report-mes-create/report-mes-create.module#ReportMesCreateModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MesCreateRoutingModule {
}
